package com.vastcom.sigma.admin.tools;

public class CanUpload {

    //png,jpg,jpeg
    public static boolean checkImg(String name) {

        name = name.toLowerCase();

        if (name.equals(".png") || name.equals(".jpg") || name.equals(".jpeg")) {
            return true;
        }

        return false;
    }

    public static boolean checkFile(String name) {
        name = name.toLowerCase();

        if (name.equals(".pdf")) {
            return true;
        }

        return false;
    }

}
